Get Near BY Agent List
GET : http://<base_url>/digipay/v3/user/get_nearby_agents
This API is used to get nearby agents from the current location
QUERY PARAMS:-
Parameter | Type | Description | Value |
---|---|---|---|
latitude | Double | Represents the latitude coordinate of a location. | 72.4996683 |
longitude | Int | Represents the longitude coordinate of a location. | 22.99604 |
skip | Int | Skip the first n document from the query result | 1 |
limit | Int | Limits the number of records or documents that you want | 1 |
start_date | Long | a Unix timestamp value in second | 1 |
end_date | Long | a Unix timestamp value in second | 1 |
sorting | String | Sorting acs or des | 123 |
search_keyword | String | a keyword which can be either name of language or a language code to get desired language as output | 123 |
HEADERS:-
Parameter | Type | Description | Value |
---|---|---|---|
Authorization | String | It is a combination of type and token to authenticate user for the given token | Token duik7309njdlkhdauhknksadhjkas986876sd873j |
CompanyID | String | Company_id is a unique primary id, that is represent company detail | 76bc712200ca444fa334f9e55e5fd7a8 |
Request Body:-
Request Example
curl --request GET \
--url 'http://192.168.1.102:8014/digipay/v3/user/get_nearby_agents?Corporate_id=unique%20id%20assigned%20to%20the%20employee%20to%20retrive%20corporate%20employee%20Detail&is_active=false&skip=1&limit=1&start_date=1&end_date=1&serach_keyword=123' \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompnanyID: 7753ad6bd8cf48f5b1312fd21eb36588' \
--header 'accept: application/json'
Response:-
Response 200(OK)
{
"success": 1,
"error": [],
"data": {
"users": [
{
"id": "d392f6c61e2a4eadbb1a0de8f74a99a0",
"first_name": "tofik",
"last_name": "1210",
"email": "tofik1210@g.com",
"dial_code": "+91",
"phone_number": "7878121210",
"user_type": 5,
"role_id": "null",
"account_number": "1682494898637",
"verification": {
"is_email": false,
"is_phone": true
},
"birth_date": null,
"image": "null",
"user_code": "AGT_ZWRUNSJ3",
"country_id": "603971d0318b4237bbfd2ab7e5fc61d2",
"status_id": 3,
"kyc_status": 1,
"kyc_process_status": 1,
"location_point": {
"type": "Point",
"coordinates": [
72.5713621,
23.022505
]
},
"rating": null,
"created_date": 1682494898,
"parent_user_id": "null",
"display_name": "null",
"kyc_status_id": null
},
{
"id": "20fa0651f2ba484b9679b7bcafefae87",
"first_name": "Cody",
"last_name": "Agent",
"email": "Fkdj@g.com",
"dial_code": "+91",
"phone_number": "98757575",
"user_type": 5,
"role_id": "null",
"account_number": "1681902171491",
"verification": {
"is_email": false,
"is_phone": true
},
"birth_date": 1113849000,
"image": "null",
"user_code": "AGT_V8OE24OQ",
"country_id": "603971d0318b4237bbfd2ab7e5fc61d2",
"status_id": 1,
"kyc_status": 2,
"kyc_process_status": 5,
"location_point": {
"type": "Point",
"coordinates": [
72.50137333333333,
22.993786666666665
]
},
"rating": null,
"created_date": 1681902171,
"parent_user_id": "null",
"display_name": "null",
"kyc_status_id": null
},
{
"id": "9b79bd7b4300409f9a317bd24fe4eac3",
"first_name": "Moin",
"last_name": "123",
"email": "moin.m@peerbits.com",
"dial_code": "+91",
"phone_number": "9879272890",
"user_type": 5,
"role_id": "null",
"account_number": "1682311227418",
"verification": {
"is_email": false,
"is_phone": true
},
"birth_date": 1006021800,
"image": "https://devdigipaypython.s3.amazonaws.com/default/rn_image_picker_lib_temp_68072611-39f1-45c9-9d8a-c0a7b3d48bce_0g5d4chNWvytFYYf",
"user_code": "AGT_A3IJHQPU",
"country_id": "603971d0318b4237bbfd2ab7e5fc61d2",
"status_id": 1,
"kyc_status": 2,
"kyc_process_status": 5,
"location_point": {
"type": "Point",
"coordinates": [
72.50137333333333,
22.993786666666665
]
},
"rating": null,
"created_date": 1682311227,
"parent_user_id": "null",
"display_name": "null",
"kyc_status_id": null
},
{
"id": "85f3fb1a86cf4cfd9c82fef5872d5580",
"first_name": "Tofic",
"last_name": "demo",
"email": "tofic@gmailc.com",
"dial_code": "+91",
"phone_number": "9638527410",
"user_type": 5,
"role_id": "null",
"account_number": "1683004437916",
"verification": {
"is_email": false,
"is_phone": true
},
"birth_date": 1115231400,
"image": "null",
"user_code": "AGT_UK7HRSN1",
"country_id": "603971d0318b4237bbfd2ab7e5fc61d2",
"status_id": 1,
"kyc_status": 2,
"kyc_process_status": 5,
"location_point": {
"type": "Point",
"coordinates": [
72.50155649999999,
22.993707
]
},
"rating": null,
"created_date": 1683004437,
"parent_user_id": "c275365a94ae4ae5a40629f3743c92ef",
"display_name": "null",
"kyc_status_id": null,
"address_info": {
"Street ": "",
"Address": "Reliance Digital, Perumbakkam Main Road, Puthu Nagar, Radha Nagar, Medavakkam, Chennai, Tamil Nadu, India",
"City": "chennaiage_drop_city_default_address"
}
},
{
"id": "2f24456cc6a7463c9a0b173b154727e5",
"first_name": "tofik",
"last_name": "2555",
"email": "tofik2555@g.com",
"dial_code": "+91",
"phone_number": "9898252555",
"user_type": 5,
"role_id": "null",
"account_number": "1683003160962",
"verification": {
"is_email": false,
"is_phone": true
},
"birth_date": null,
"image": "null",
"user_code": "AGT_B1AN2SIN",
"country_id": "603971d0318b4237bbfd2ab7e5fc61d2",
"status_id": 1,
"kyc_status": 2,
"kyc_process_status": 5,
"location_point": {
"type": "Point",
"coordinates": [
72.50155649999999,
22.993707
]
},
"rating": null,
"created_date": 1683003160,
"parent_user_id": "null",
"display_name": "null",
"kyc_status_id": null
}
]
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}
RESPONSES :-
Status Code | Description |
---|---|
200 | OK |
400 | BAD REQUEST |
404 | NOT FOUND |
500 | INTERNAL SERVER ERROR |